/**
 * Copyright (C) 2007 Mustafa K. Isik - isik@acm.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */

package com.paxcodi.threads.diner.gathering;

public class Seat {

	private int seatIndex;

	private boolean isOccupied;

	/**
	 * A <code>Seat</code> is initialized to have an index and to be unoccupied.
	 * 
	 * @param seatIndex the index of the seat at a <code>CircularTable</code>
	 */
	Seat(int seatIndex) {
		this.seatIndex = seatIndex;
		isOccupied = false;
	}

	int getSeatIndex() {
		return seatIndex;
	}

	boolean isOccupied() {
		return isOccupied;
	}

	void setOccupied (boolean isOccupied) {
		this.isOccupied = isOccupied;
	}
}
